package com.wjx.article_sys.service;

import com.github.pagehelper.PageInfo;
import com.wjx.article_sys.entity.Article;

import java.util.List;

public interface IArticleService {
    public PageInfo<Article> queryAllArticle(int pageNum, int pageSize);
    public Article queryArticleById(Integer id);
    public void addArticle(String title , String content)throws Exception;
    public void updateArticleById(Integer id,String title,String content) throws Exception;
    public void deleteArticleById(Integer id) throws Exception;
    public List<Integer> articleCount();
}
